function varargout = etapa3gui(varargin)
% ETAPA3GUI MATLAB code for etapa3gui.fig
%      ETAPA3GUI, by itself, creates a new ETAPA3GUI or raises the existing
%      singleton*.
%
%      H = ETAPA3GUI returns the handle to a new ETAPA3GUI or the handle to
%      the existing singleton*.
%
%      ETAPA3GUI('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in ETAPA3GUI.M with the given input arguments.
%
%      ETAPA3GUI('Property','Value',...) creates a new ETAPA3GUI or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before etapa3gui_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to etapa3gui_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help etapa3gui

% Last Modified by GUIDE v2.5 30-Oct-2013 02:00:32

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @etapa3gui_OpeningFcn, ...
                   'gui_OutputFcn',  @etapa3gui_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before etapa3gui is made visible.
function etapa3gui_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to etapa3gui (see VARARGIN)

% Choose default command line output for etapa3gui
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes etapa3gui wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = etapa3gui_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes on selection change in configuraciones.
function configuraciones_Callback(hObject, eventdata, handles)
% hObject    handle to configuraciones (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns configuraciones contents as cell array
%        contents{get(hObject,'Value')} returns selected item from configuraciones


% --- Executes during object creation, after setting all properties.
function configuraciones_CreateFcn(hObject, eventdata, handles)
% hObject    handle to configuraciones (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: listbox controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on button press in volver.
function volver_Callback(hObject, eventdata, handles)
% hObject    handle to volver (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on selection change in configelegida.
function configelegida_Callback(hObject, eventdata, handles)
% hObject    handle to configelegida (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns configelegida contents as cell array
%        contents{get(hObject,'Value')} returns selected item from configelegida


% --- Executes during object creation, after setting all properties.
function configelegida_CreateFcn(hObject, eventdata, handles)
% hObject    handle to configelegida (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: listbox controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on button press in sel_config.
function sel_config_Callback(hObject, eventdata, handles)
% hObject    handle to sel_config (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)



function gananciaedit_Callback(hObject, eventdata, handles)
% hObject    handle to gananciaedit (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of gananciaedit as text
%        str2double(get(hObject,'String')) returns contents of gananciaedit as a double


% --- Executes during object creation, after setting all properties.
function gananciaedit_CreateFcn(hObject, eventdata, handles)
% hObject    handle to gananciaedit (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on button press in gananciaactualiza.
function gananciaactualiza_Callback(hObject, eventdata, handles)
% hObject    handle to gananciaactualiza (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in volverae2.
function volverae2_Callback(hObject, eventdata, handles)
% hObject    handle to volverae2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in continuar.
function continuar_Callback(hObject, eventdata, handles)
% hObject    handle to continuar (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in zoom.
function zoom_Callback(hObject, eventdata, handles)
% hObject    handle to zoom (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in pan.
function pan_Callback(hObject, eventdata, handles)
% hObject    handle to pan (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in grid.
function grid_Callback(hObject, eventdata, handles)
% hObject    handle to grid (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in cursor.
function cursor_Callback(hObject, eventdata, handles)
% hObject    handle to cursor (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on selection change in etapasel.
function etapasel_Callback(hObject, eventdata, handles)
% hObject    handle to etapasel (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,'String')) returns etapasel contents as cell array
%        contents{get(hObject,'Value')} returns selected item from etapasel


% --- Executes during object creation, after setting all properties.
function etapasel_CreateFcn(hObject, eventdata, handles)
% hObject    handle to etapasel (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on button press in noapretar.
function noapretar_Callback(hObject, eventdata, handles)
% hObject    handle to noapretar (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
